<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use DB;
use App\Components\Tools;
use App\Models\DyModels\Douyin;
use App\Models\UserModels\Xunpan;
use App\Models\VoidsModels\CommentKey;
use DispatchesJobs;


ini_set("error_reporting","E_ALL & ~E_NOTICE");

/**
 * 抖音询盘分配数据
 */
class JobXunpanDis extends Command {

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'JobXunpanDis';
    protected $description = '抖音询盘分配数据';
    private $url = '';

    public function handle() {
        Tools::commandsLog('JobXunpanDis:' . date("Y-m-d H:i:s"));
        //$queueId = dispatch(new \App\Jobs\Xunpanjob());
        $queueId = dispatch((new \App\Jobs\XunpanDisJob())->onQueue('xunpandis'));
        dd($queueId);
        exit();
    }

}
